#include"epoll_sever.hpp"
#include<string>
#include<stdlib.h>

static void Usage(std::string proc)
{
    std::cout << "Usage: " << "\n\t" << proc << " port" << std::endl;
}

int main(int argc,char *argv[])
{
  if(argc!=2)
  {
    Usage(argv[0]);
    exit(5);
  }
  int port=atoi(argv[1]);
  ns_epoll::EpollSever *ep_svr=new ns_epoll::EpollSever(port);
  ep_svr->InitSever();
  ep_svr->Run();
  return 0;

}
